home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / qdi20.zip / QDI20.DOC < prev   
Text File  |  1991-10-14  |  7KB  |  159 lines

  1.  
  2.              Quick Disk Identification (QDI)
  3.         
  4.                       Version 2.0
  5.                 
  6.                    October 13, 1991
  7.                 
  8.            Copyright 1991:   George Spafford
  9.         
  10.  
  11. Purpose:
  12.  
  13. To identify the basic drive hardware on an IBM compatible computer.
  14.  
  15. Procedure:
  16.  
  17. Install QDI in a directory in your path.  QDI must now be invoked on the
  18. drive to be checked.  In other words, if you want information about your
  19. E: drive, you would have to go to your E: drive and run QDI from there.
  20.  
  21. Output Definitions:
  22.  
  23. Media Descriptor:       This is the hex value of the drive.
  24.  
  25. Bytes per sector:       This is the number of bytes per sector.
  26.  
  27. Total Sectors:          This is the total sector count for the drive.
  28.  
  29. Sectors per Cluster:    This is the number of sectors in each cluster.
  30.  
  31. Bytes per cluster:      This is the number of bytes in each cluster.
  32.  
  33. Total Clusters:         This is the total cluster count for tthe drive.
  34.  
  35. Free Clusters:          This is the number of clusters that have yet to be
  36.                         allocated for storage.  I.E. they are free for use.
  37.  
  38. Total Space:            This is the total amount of disk space in terms of
  39.                         bytes.
  40.  
  41. Free Drive Space:       This is the amount of drive space that is available
  42.                         for use.
  43.  
  44.  
  45. Let's Talk:
  46.  
  47. Okay, a few basics may be in order.  If you know about hard drives, then you
  48. can easily skip this section and still sleep at night.  Your hard disk, or any
  49. disk drive for that matter, is composed of bits, bytes, sectors, clusters, and
  50. other things that go bump in the night.  The following is a brief attempt to
  51. explain what some of them mean.
  52.  
  53. Byte:           This is one character.   The letter C is one byte.
  54.  
  55. Bit:            8 bits (sequences of 1's and 0's) make up one byte.
  56.  
  57. Sector:         A sector is a group of bytes based on a power of 2.
  58.                 512 bytes is quite common for drives.
  59.  
  60. Cluster:        A cluster is a compilation of sectors - also based on the
  61.                 power of 2.
  62.  
  63.  
  64. How do they relate you ask??
  65.  
  66.     Total Bytes Per Cluster = Bytes per Sector * Sectors Per Cluster
  67.  
  68.     Total Drive Space = Bytes per sector * Sectors per cluster * Total Clusters
  69.  
  70.     Bytes per Cluster = Total Drive Space in Bytes / Total Clusters
  71.  
  72. Why I am telling you this???
  73.  
  74.     You see, the old PC has a small limitation with 16 bit math and integers.
  75.     A signed integer takes 8 bits and can take a value in the range from
  76.     -32,768 to 32,767.  An unsigned integer is 8 bits and can take a value
  77.     in the range from 0 to 65,535.  Okay, now that I've told you this, I've
  78.     experimented with increasing the values of my cluster and sector counts
  79.     past 65,535.  Why?  Well, if you have a drive with 2K clusters, one
  80.     paritition and it is 120 megabytes, then we can discern that there are
  81.     61,440 clusters in total.  So what?  Well, if my math relies on integers,
  82.     then we have exceeded the 32,767 cluster limit.  So, I have tried to get
  83.     away from this.  IF YOU GET ANY REALLY STRANGE ANSWERS AND YOU HAVE A BIG
  84.     PARTITION (over 120 MB), THEN YOU HAVE PROBABLY EXCEEDED THE MATH ABILITIES
  85.     THAT I HAVE IN THIS PROGRAM.  If you could leave me a message on EXEC-PC,
  86.     AV-SYNC, Queued Access or Ye Olde postal servicee about what happened & how,
  87.     I'd appreciate it.
  88.  
  89. History:
  90.  
  91.         10/13/91        Okay, the I have located the bug that caused
  92.                         disks with over 32,767 clusters to go nuts.  As some
  93.                         of you know, this is the limit of a positive signed
  94.                         integer in C and C++.  By changing the variables to
  95.                         unsigned integers and double long integers, the cluster
  96.                         size limit is now 65,535 (with 2K clusters, this is just
  97.                         shy of 128 meg).  I'm having a bit of a problem with interfacing long
  98.                         integers with the Interupt 21H 1CH function.  If I can
  99.                         get a true double long integer value, the program
  100.                         will be set for any contingency.
  101.                         
  102.         9/29/91         Initial release.
  103.  
  104. I hope this program helps you evaluate some of your problems
  105. or even makes some solutions/benefits clear.  This program is SHAREWARE.
  106. IT IS NOT PUBLIC DOMAIN.  If you find that this program aids you, you are
  107. required ethically and legally to register it after a 30 day evaluation period.
  108. This software is priced at $5 for each concurrently used copy in an
  109. organization.
  110.  
  111.           Sincerely,
  112.  
  113.           George Spafford
  114.           3001 LakeShore Drive, #329
  115.           St. Joseph, MI 49085
  116.  
  117.          Data:    (616) 468-5026  Queued Access BBS 19200-8-N-1
  118.                   
  119.  
  120. And now for the unpleasantries:
  121.  
  122.     QDI IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE SPAFFORD)
  123.     MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED,
  124.     INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF MERCHANTABILITY
  125.     OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS
  126.     SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE
  127.     LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS,
  128.     OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
  129.     OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
  130.     ----------------------------------------------------------------
  131.  
  132. Other Products:
  133.  
  134.      Cache Test    Find out just how much your cache really
  135.             helps!
  136.  
  137.      CutIt        Parse streamed files by x number of bytes
  138.             and add a CR/LF at the end.
  139.                         
  140.          FLC            Compare two file lists and generate a list
  141.                         of duplicates and/or unique files.
  142.  
  143.      PadIt        Convert Variable length records to a Fixed
  144.             length format.
  145.                         
  146.          QHI            Quick Hardware Identification.  Identify your
  147.                         processor, its approximate speed, serial ports,
  148.                         parallel ports, game ports and so forth.
  149.  
  150.          ZipCodeTool    Look up zip codes by state or city.  If you
  151.                         know the zip code, you can look up the city
  152.                         and state.
  153.                         
  154.          ZipWhen        Insure that the Zip file's date matches the
  155.                         date of the newest file it contains.  This
  156.                         reverses the annoying time stamping that some
  157.                         BBS packages do.
  158. -- EOF --
  159.